package com.dd.service;

import com.dd.dao.ShopMapper;
import com.dd.pojo.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService{
    @Autowired
    ShopMapper shopMapper;

    public List<Shop> finduname(String uname) {
        return shopMapper.finduname(uname);
    }

    public int addshop(Shop shop) {
        return shopMapper.addshop(shop);
    }

    public int deleteshop(int id) {
        return shopMapper.deleteshop(id);
    }
}
